﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace FlowDesigner.Flow
{
    public class linkNode:Control
    {
        public linkNode() 
        {
        }
        static linkNode()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(linkNode), new FrameworkPropertyMetadata(typeof(linkNode)));
        }
        public bool IsOpenLink
        {
            get { return (bool)GetValue(IsOpenLinkProperty); }
            set { SetValue(IsOpenLinkProperty, value); }
        }

        // Using a DependencyProperty as the backing store for IsOpenLink.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IsOpenLinkProperty =
            DependencyProperty.Register("IsOpenLink", typeof(bool), typeof(linkNode), new PropertyMetadata(false,new PropertyChangedCallback(IsOpenLinkCallback)));

        private static void IsOpenLinkCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            
        }

        public string strFont
        {
            get { return (string)GetValue(strFontProperty); }
            set { SetValue(strFontProperty, value); }
        }

        // Using a DependencyProperty as the backing store for strFont.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty strFontProperty =
            DependencyProperty.Register("strFont", typeof(string), typeof(linkNode), new PropertyMetadata("\uead2"));
    }
}
